export const restrictNum = (
  value: number,
  min: number = 0,
  max: number = 100
) => Math.max(min, Math.min(value, max));
